﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BrokerBase.Lib.Product
{
    public class BasicAmount : IBasicAmount
    {
        public BasicAmount()
        {

        }

        public BasicAmount(IProduct product)
            : this()
        {
            Owner = product;
        }

        public BasicAmount(IProduct product,string name, int basic, int min, int? max):this(product)
        {
            Name = name;
            Basic = basic;
            Min = min;
            Max = max;
        }

        public virtual IProduct Owner { get; set; }

        public virtual string Name { get; set; }

        public virtual int Min { get; set; }

        public virtual int Basic { get; set; }

        public virtual int? Max { get; set; }

        public virtual int Id { get; set; }

    }
}
